package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper {

@AutoFill(OperationType.INSERT)
    void insert(Setmeal setmeal);

    List<SetmealVO> getpage(SetmealPageQueryDTO dto);

    SetmealVO getSetmealConcreateById(Long id);
    @AutoFill(OperationType.UPDATE)
    void updateSetmeal(Setmeal setmeal);


    @AutoFill(OperationType.UPDATE)
    void updateStatus(Setmeal setmeal);

    void deleteSetmealBatch(List<Long> ids);
}
